projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f96ee3
)
km/common: fix bug in IVM mac address access
author
Holger Brunck
<
[email protected]
>
Tue, 20 Sep 2011 05:05:55 +0000
(
05:05
+0000)
committer
Wolfgang Denk
<
[email protected]
>
Wed, 21 Sep 2011 21:38:41 +0000
(23:38 +0200)
The MAC address stored in the inventory eeprom begins at offset 1.
Signed-off-by: Holger Brunck <
[email protected]
>
Signed-off-by: Valentin Longchamp <
[email protected]
>
cc: Wolfgang Denk <
[email protected]
>
board/keymile/common/ivm.c
patch
|
blob
|
history
diff --git
a/board/keymile/common/ivm.c
b/board/keymile/common/ivm.c
index d0cb0d227f198e1873f84e833dc31cda9905d783..bcf3aed97e32c95ed3193cae2ca3be383f305b9d 100644
(file)
--- a/
board/keymile/common/ivm.c
+++ b/
board/keymile/common/ivm.c
@@
-206,8
+206,8
@@
static int ivm_analyze_block2(unsigned char *buf, int len)
unsigned char valbuf[CONFIG_SYS_IVM_EEPROM_PAGE_LEN];
unsigned long count;
- /* IVM_M
acAddress
*/
- sprintf((char *)valbuf, "%pM", buf);
+ /* IVM_M
AC Adress begins at offset 1
*/
+ sprintf((char *)valbuf, "%pM", buf
+ 1
);
ivm_set_value("IVM_MacAddress", (char *)valbuf);
/* if an offset is defined, add it */
#if defined(CONFIG_PIGGY_MAC_ADRESS_OFFSET)